﻿
using System.Web;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Web.Mvc;
using System.Data.Entity;

namespace MvcMusicStore.Models
{
    [Bind(Exclude = "GenreId")]
    public class Genre
    {
        [ScaffoldColumn(false)]
        public int GenreId { get; set; }

        [Required(ErrorMessage = "Completame!!")]
        public string Name { get; set; }

        [Required(ErrorMessage = "Ami también!!")]
        public string Description { get; set; }

        [Compare("Description", ErrorMessage = "Teneis que poner lo mismo vio")]

        public string DescriptionCopy { get; set; }

        public List<Album> Albums { get; set; }

    }
}